* formal.do	JEP	01/27/15
* Build regression table
* Formal sector, wages

*************************** Change log ********************************** 

/*
	
*/	

clear 
version 13.1

* Project info
cap project, doinfo
if _rc==198 {
	if c(username)=="J16339" | c(username)=="A15858" loc master "B:\Col_Minimum_Wage" 
	else if c(os)=="Windows" loc master "C:/Users/jorpp/Dropbox (Brown)/Col_Minimum_Wage"
	else loc master "/home/jperez/AA_Minimum_Wage"
}
else {
	local master "`r(pdir)'"
	local doname "`r(dofile)'" 
	* Project calls
	project, relies_on("`master'/Code/Est/rifregtable2.do")
}

do "`master'/Code/Est/rifregtable2.do"


* Bite - mensual - by industry

* rifregtable2, nrif(4) time(1999q1) panels(emp_bp emp_bq sst_emp_bp sst_emp_bq emp_bp_ixc emp_bq_ixc) pctiles(5 10 15 20 25 30 50 75 90) master("`master'") outdir("`master'/Doc/third_year/tab/formal") dom(_edom_indcc) new(_new_indcc) mw(bite) per(mensual) 
rifregtable2, nrif(4) time(1999q1) panels(emp_bp sst_emp_bp ie_emp_bp iect_emp_bp iect_emp_bpp iect_emp_bppr) pctiles(5 10 15 20 25 30 50) master("`master'") outdir("`master'/Doc/tosubmit2/tab/formal_gap") dom(_edom_indcc) new(_new_indcc_gap) mw(bite) per(mensual) 
